{include file="header.html"}

<div id="container">
	<div id="wrapper">
		<header>
			<div class="center">
				{if count($languages) > 1}
				<div class="languages">
					<ul>
					{foreach from=$languages key=name item=code}
						<li{if $language == $code} class="selected"{/if}><a href="./?lang={$code|urlencode}">{$name|htmlentities:3:'UTF-8'}</a></li>
					{/foreach}
					</ul>
				</div>
				{/if}
				
				<h1>{$smarty.const.INSTALLATION|htmlentities:3:'UTF-8'}</h1>
			</div>
		</header>
		
		<div id="content">
			<section>		
				{if isset($main)}{include file="$main"}{/if}
			</section>
		</div>
	</div>
	
	<footer>
		<a href="http://php4dvd.sourceforge.net/" target="_blank">php4dvd v{$newversion|number_format:1}</a>
	</footer>
</div>

{if isset($message)}
<div class="message">
	<div class="text">
		{$message|htmlentities:3:'UTF-8'}
	</div>
</div>
{/if}

{include file="footer.html"}